package com.nervenets.template.controller.role.params;

import com.nervenets.general.web.params.Params;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;
import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class UserRoleParams implements Params {
    @ApiModelProperty(value = "权限组ID", required = true)
    @Positive(message = "请选择一个权限组")
    private long roleGroupId;
    @ApiModelProperty(value = "用户IDs", required = true)
    @NotEmpty(message = "请至少选择一个用户")
    private List<Long> userIds;
    @ApiModelProperty(value = "是否为添加，true为添加，false为移出")
    private boolean add;
}
